MySQL Admin Form Generator
Created by John Beech
Contact: johnbeech@mkv25.net
Version: 1.00

Contents:
- sql_class.php - My own personal MySQL access class, nothing special.
- mysql_adminformgenerator.php - The main script that generates other scripts.


Purpose:
MySQL Admin Form Generator reads the properties of a table and generates
a new script a basic admin form that will allow you to add, edit and delete
entries from that table.

The idea is that this script does the basic donkey work for a PHP developer
creating a basic admin form with error checking, which can then be customized.

Use: 
Change a few config variables in mysql_adminformgenerator.php

Set:
- DATABASE NAME
- USER
- PASSWORD
$sql = new sql('localhost', 'DATABASE NAME', 'USER', 'PASSWORD');


And set:
$tableName = 'TABLE NAME'; // The table you want to create an admin form for
$idFieldName = 'id';       // The unique id field used for indexing the table
$targetScriptFile = "table_admin.php"; // The file name of the NEW script you want to generate

Then just view/run the mysql_adminformgenerator.php script in your webrowser.
You can then view the new PHP script that has been generated.

You will probably want to customize the PHP script, removing/changing the error checking and adding in
custom form field types.

Please report any bugs or errors that appear to johnbeech@mkv25.net.
